<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>乐扣游戏商城</title>
  <link rel="shortcut icon" href="favicon.ico" />
  <link rel="stylesheet" href="css/base.css">
  <link rel="stylesheet" href="css/settlement.css">
</head>

<body>
  <div class="main">
    <div class="logo">
      <a href="index.html">
        <img src="images/logo.png" alt="">
      </a>
    </div>
    <div class="success">
      <a href="#">
        <img src="images/yes.png" alt="">
      </a>
      支付成功
    </div>
    <div class="say">
      <h1> 感谢！</h1>
      <p>感谢您对乐扣游戏商城的关顾。</p>
      <p class="din"></p>
    </div>

  </div>

</body>
<script>

  var str = randomNum(11);
  console.log(randomNum(11));
  function randomNum (n) {
    var res = "";
    for (var i = 0; i < n; i++) {
      res += Math.floor(Math.random() * 10);
    }
    return res;
  }

  var din = document.querySelector('.din');
  din.innerHTML = '订单号：' + str;




</script>

</html>